//
//  ProductInfoModel.m
//  LoveTrail
//
//  Created by DEV on 15/6/17.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "ProductInfoModel.h"

@implementation ProductInfoModel

- (void)decodeDic:(NSDictionary *)dic

{
    if (dic) {
        if (![[dic objectForKey:@"imageUrl"] isKindOfClass:[NSNull class]]) {
            self.imageUrl = [dic objectForKey:@"imageUrl"];
        }
        if (![[dic objectForKey:@"productTitle"] isKindOfClass:[NSNull class]]) {
            self.productTitle = [dic objectForKey:@"productTitle"];
        }
        if (![[dic objectForKey:@"currentPrice"] isKindOfClass:[NSNull class]]) {
            self.currentPrice = [dic objectForKey:@"currentPrice"];
        }
        if (![[dic objectForKey:@"originalPrice"] isKindOfClass:[NSNull class]]) {
            self.originalPrice = [dic objectForKey:@"originalPrice"];
        }
        if (![[dic objectForKey:@"saledNum"] isKindOfClass:[NSNull class]]) {
            self.saledNum = [dic objectForKey:@"saledNum"];
        }
    }
}
@end
